<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    #div1 {
        width: 300px;
        height: 200px;
        background: #451245; 

        padding: 50px;
        border: 20px solid pink;
        margin: 80px;

        /* 怪异盒模型 */
        /* box-sizing: border-box; */
        /* 标准盒模型 */
        /* box-sizing: content-box; */

        /* 盒模型：
        蓝色：content 内容
        绿色：padding 让内容与盒子有距离
        boder 边框
        margin 外边距，让元素距离其他元素有一定的距离 */

        }
    </style>
</head>
<body>
    <div id="div1">
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Pariatur quas tempora delectus magnam totam quod, placeat nam, non consectetur assumenda qui repudiandae, facere omnis corrupti unde sequi. Incidunt, deleniti enim.
    </div>
</body>
</html>